package com.shycloud.mido.music.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shycloud.mido.music.domain.MisMusicBanner;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shycloud.mido.music.vo.MisMusicBannerVO;
import com.shycloud.mido.music.vo.MusicCateNameVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface MisMusicBannerService extends IService<MisMusicBanner> {

	/**
	 * 上传 banner
	 *
	 * @param imgList
	 * @param categoryId
	 * @param optId
	 * @return java.util.map
	 * @author nianhua.jiang
	 * @date 2021/7/5 16:50
	 */
	List<Map<String, String>> batchUploadBanners(List<MultipartFile> imgList, Integer categoryId,
			Integer optId, String name);

	IPage<MisMusicBannerVO> getAllBanners(Integer current, Integer size, Integer categoryId,
			Integer optId);

	Boolean associateBanner(String link, String collection, Integer bannerId,
			Integer associateType);

	Boolean confirmAdding(String link, Integer collectionId, Integer bannerId);

	Boolean disableBanner(Integer bannerId);
}
